package com.three.controller;

import com.three.entity.Outlibrary;
import com.three.service.OutLibraryInformationService;
import com.three.vo.OutGoodsVo;
import com.three.vo.OutLibraryInformationVo;
import com.three.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/outLibraryInformation")
public class OutLibraryInformationController {
    @Autowired
    private OutLibraryInformationService outLibraryInformationService;
    @PostMapping("/getOutLibraryInformation")
    //查询
    public R getOutLibraryInformation(Integer currentPage, Integer pageSize,@RequestBody OutLibraryInformationVo outLibraryInformationVo){
        return outLibraryInformationService.getOutLibraryInformation(currentPage, pageSize, outLibraryInformationVo);
    }

    @PostMapping("/addOutLibraryInformation")
    //添加出库信息
    public R addOutLibraryInformation(@RequestBody OutGoodsVo outGoodsVo){
        return outLibraryInformationService.addOutLibraryInformation(outGoodsVo);
    }

}
